]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
KeyboardStatus: fix showing current layout
authorGiovanni Campagna <gcampagna@src.gnome.org>
Wed, 23 Feb 2011 17:52:35 +0000 (18:52 +0100)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Wed, 23 Feb 2011 19:13:31 +0000 (20:13 +0100)
Util.spawn accepts an array of strings as the arguments, and will
not implicitly convert other types.

https://bugzilla.gnome.org/show_bug.cgi?id=643104

js/ui/status/keyboard.js

index 883c534b8623ad22699f7f1af9ba300314d09f8b..ae498e0f9d68ab03e2106e46fad8102bb6132348 100644 (file)
@@ -71,7 +71,7 @@ XKBIndicator.prototype = {
 
         this.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
         this.menu.addAction(_("Show Keyboard Layout..."), Lang.bind(this, function() {
-            Util.spawn(['gkbd-keyboard-display', '-g', this._config.get_current_group() + 1]);
+            Util.spawn(['gkbd-keyboard-display', '-g', String(this._config.get_current_group() + 1)]);
         }));
         this.menu.addAction(_("Localization Settings"), function() {
             Util.spawn(['gnome-control-center', 'region']);